package com.jn.erp.security.sysservice.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * <pre>
 *
 * </pre>
 *
 * @author sunjiyong
 * @since 2024/8/28 15:37
 */
public enum OrgLevelEnum implements BaseEnum {
    GROUP(1, "集团"),
    COM(2, "分校"),
    DPT(3, "部门");

    @EnumValue
    private final int code;
    @JsonValue
    private final String name;

    public int getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }

    private OrgLevelEnum(final int code, final String name) {
        this.code = code;
        this.name = name;
    }
}
